package com.example.demo.service.impl;


import com.example.demo.dao.PictureDao;
//import com.example.demo.entity.CloudStorageConfig;
import com.example.demo.entity.Picture;
import com.example.demo.service.PictureService;

import com.google.gson.Gson;
import com.qiniu.common.QiniuException;
import com.qiniu.http.Response;
import com.qiniu.storage.model.DefaultPutRet;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.io.FileInputStream;
import java.util.List;

@Service

public class PictureServiceImpl implements PictureService{

    //注入Mapper接口对象
    @Resource
    private PictureDao pictureDao;

    @Override
    public List<Picture> list() {
       return  pictureDao.list();
    }

    @Override
    public int insertFood(Picture picture) {
        return pictureDao.insertFood(picture);
    }

    @Override
    public void delete(int id) {
        pictureDao.delete(id);
    }

    @Override
    public Picture selectid(int id) {
        return pictureDao.selectid(id);
    }




}